package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.base.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * vc基金资产日收益表 wdy_vc_fund_asset_daily_profit
 * 
 * @author ruoyi
 * @date 2020-04-04
 */
public class WdyVcFundAssetDailyProfit extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** id */
		private Long id;
	/** 用户id */
		private String userId;
	/** vc基金资产 */
		private BigDecimal vcFundAsset;
	/** 日收益 */
		private BigDecimal profit;
	/** 日利率 */
		private BigDecimal profitRatio;
	/** vc价格 */
		private BigDecimal vcPrice;
	/** 发放日期 */
	    @DateTimeFormat(pattern="yyyy-MM-dd")
		@JsonFormat(pattern = "yyyy-MM-dd")
		private Date grantDate;
	/** 删除标志（0代表存在 1代表删除） */
		private Integer delFlag;
	/** 创建者 */
		private String createBy;
	/** 创建时间 */
	    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
		private Date createTime;
	/** 更新者 */
		private String updateBy;
	/** 更新时间 */
	    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
		private Date updateTime;
	/** 备注信息 */
		private String remark;

	public void setId(Long id) 
	{
		this.id = id;
	}

	public Long getId() 
	{
		return id;
	}
	public void setUserId(String userId) 
	{
		this.userId = userId;
	}

	public String getUserId() 
	{
		return userId;
	}
	public void setVcFundAsset(BigDecimal vcFundAsset) 
	{
		this.vcFundAsset = vcFundAsset;
	}

	public BigDecimal getVcFundAsset() 
	{
		return vcFundAsset;
	}
	public void setProfit(BigDecimal profit) 
	{
		this.profit = profit;
	}

	public BigDecimal getProfit() 
	{
		return profit;
	}
	public void setProfitRatio(BigDecimal profitRatio) 
	{
		this.profitRatio = profitRatio;
	}

	public BigDecimal getProfitRatio() 
	{
		return profitRatio;
	}
	public void setVcPrice(BigDecimal vcPrice)
	{
		this.vcPrice = vcPrice;
	}

	public BigDecimal getVcPrice()
	{
		return vcPrice;
	}
	public void setGrantDate(Date grantDate) 
	{
		this.grantDate = grantDate;
	}

	public Date getGrantDate() 
	{
		return grantDate;
	}
	public void setDelFlag(Integer delFlag) 
	{
		this.delFlag = delFlag;
	}

	public Integer getDelFlag() 
	{
		return delFlag;
	}
	public void setCreateBy(String createBy) 
	{
		this.createBy = createBy;
	}

	public String getCreateBy() 
	{
		return createBy;
	}
	public void setCreateTime(Date createTime) 
	{
		this.createTime = createTime;
	}

	public Date getCreateTime() 
	{
		return createTime;
	}
	public void setUpdateBy(String updateBy) 
	{
		this.updateBy = updateBy;
	}

	public String getUpdateBy() 
	{
		return updateBy;
	}
	public void setUpdateTime(Date updateTime) 
	{
		this.updateTime = updateTime;
	}

	public Date getUpdateTime() 
	{
		return updateTime;
	}
	public void setRemark(String remark) 
	{
		this.remark = remark;
	}

	public String getRemark() 
	{
		return remark;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("vcFundAsset", getVcFundAsset())
            .append("profit", getProfit())
            .append("profitRatio", getProfitRatio())
            .append("vcPrice", getVcPrice())
            .append("grantDate", getGrantDate())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
